<div class="post">
    <div class="title">
        <i class="icon12-title"></i>
        <?php echo $model->name ?></div>
    <?php
    foreach ($news as $key => $value) {
        ?>
        <div class="media">
            <?php echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl . '/uploads/thumb/' . $value->image, $value->name, array('class' => 'media-object', 'style' => 'width:80px')), array('/tin-tuc/' . $value->detail . '-' . $value->id . '.html'), array('class' => "pull-left", 'title' => $value->name)); ?>
            <div class="media-body">
                <h6 class="media-heading"><?php echo CHtml::link($value->name, array($value->detail . '-' . $value->id . '.html')) ?></h6>

            </div>
        </div>
    <?php } ?>

</div>


<?php
$this->widget('CLinkPager', array(
    'pages' => $pages,
))
?>